package com.example.pages;

import org.openqa.selenium.WebElement; 
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;

public class UserPage extends InternalPage {

	@FindBy(name = "username")
	public WebElement userName;

	@FindBy(name = "email")
	public WebElement emailFild;

	@FindBy(id = "password")
	public WebElement passwordFild;

	@FindBy(id = "password2")
	public WebElement password2Fild;

	@FindBy(name = "submit")
	public WebElement saveButton;
	  
	@FindBys({@FindBy(className = "content"),
		@FindBy(tagName = "h2")})
	  WebElement header;

	public boolean isOnThisPage() {
		return userName.isDisplayed();
	}

		
	public boolean isOnUseManagementPage() {
			return header.isDisplayed();
	}

}
